<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/jquery-1.12.4.min.js"></script>
    <script>
        $(
            $.ajax({
                url: 'http://127.0.0.1:5000/data',
                type: 'GET',
                dataType: 'json',

                success:function(response){
                    console.log(response);
                },
                error: function () {
                    console.log('请求失败。')
                },
                async: true
            })
        )
    </script>
</head>
<body>

</body>
</html>